home *** CD-ROM | disk | FTP | other *** search
/ CDV Software Presents (USA) / CDV Software Presents (USA).bin / demo / bk_demo.exe / DATA.PAK / ui / MuptiplayerGamesListSettings.lua < prev    next >
Encoding:
Text File  |  2002-08-05  |  563 b   |  25 lines

  1. function LuaProcessMessage( nMessageCode, nFirst, nSecond )
  2.     if ( nMessageCode == 536936448 ) then --NOTIFY STATE CHANGED
  3.         if ( nFirst == 3006 or nFirst == 3007 ) then
  4.             --Forward this message to parent
  5.             AddMessage( 268435457, nFirst, nSecond )
  6.             return 1
  7.         end
  8.     end
  9.  
  10. -- if keyboard pressed, press specific button
  11.  
  12.  
  13.     if ( nMessageCode == 10002 ) then
  14.         AddMessage( 65537, 3006, 1 )        -- button pressed
  15.         return 1
  16.     end
  17.  
  18.     if ( nMessageCode == 10001 ) then
  19.         AddMessage( 65537, 3007, 1 )        -- button pressed
  20.         return 1
  21.     end
  22.  
  23.     return 0
  24. end
  25.